package com.ccn.crm.mapper;

import com.ccn.crm.model.Action;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
@Repository
public interface ActionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Action record);

    Action selectByPrimaryKey(Integer id);

    List<Action> selectAll();

    int updateByPrimaryKey(Action record);

    Action selectByProduct(String product);
    Action selectByProductAndStage(String product,String extra);

    List<Action> selectFirst();
    List<Action> selectSecond();
    List<Action> selectThird();

    Date selectDateWait(String product);
    Date selectDateOk(String product);
}